package org.paris8.trombino.util;

import java.io.IOException;
import java.util.Properties;

import org.springframework.core.io.ClassPathResource;

public class Utils {
	public static String GetValueByNameInProperties(String fileName, String name)
	{
		String ret = "";
		
		ClassPathResource cr = new ClassPathResource(fileName);
        Properties pros = new Properties();
        try {
            pros.load(cr.getInputStream());
            
            ret = pros.getProperty(name);
        } catch (IOException ex) {

        }
        
        return ret;		
	}
}
